package com.atguigu.spzx.feign.product;

import com.atguigu.spzx.model.entity.product.ProductSku;
import com.atguigu.spzx.model.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Mahone
 */
@FeignClient(value = "service-product")
public interface ProductFeignClient {
    /**
     * 根据skuId查询商品信息
     * @param skuId
     * @return
     */
    @GetMapping("/api/product/getBySkuId/{skuId}")
    public abstract Result<ProductSku> getBySkuId(@PathVariable Long skuId);

}
